<div class="recgoods_main">
    <div class="recgoods_top">
        <a ng-href="{{mall_ucurl}}myview"><span class="glyphicon glyphicon-chevron-left"></span></a>
        <h class="recgoods_title">订单管理</h>
    </div>
    <div class="recgoods_tab">
        <ul class="nav nav-tabs" role="tablist">
            <li ng-click="initialization(0)" role="presentation" class="all">
                <a href="/#all" aria-controls="processing"
                   role="tab" data-toggle="tab">全部</a>
            </li>
            <li ng-click="initialization(1)" role="presentation" class="wait_pay">
                <a href="/#wait_pay"
                   aria-controls="processing"
                   role="tab"
                   data-toggle="tab">待付款</a>
            </li>
            <li ng-click="initialization(2)" role="presentation" class="wait_delivery">
                <a href="/#wait_delivery"
                   aria-controls="finish"
                   role="tab" data-toggle="tab">待发货</a>
            </li>
            <li ng-click="initialization(3)" role="presentation" class="processing">
                <a href="/#processing"
                   aria-controls="processing"
                   role="tab"
                   data-toggle="tab">待收货</a>
            </li>
            <li ng-click="initialization(4)" role="presentation" class="finish">
                <a href="/#finish"
                   aria-controls="finish" role="tab"
                   data-toggle="tab">待评价</a>
            </li>
        </ul>

        <div class="tab-content">
            <!--全部订单-->
            <div role="tabpanel" class="tab-pane" id="all">
                <div class="order-cont" ng-show="flat0==false">
                    <div class="error">
                        <div class="error_img">
                            <img src="images/noorder.png">
                        </div>
                        <p class="sub_txt">您还没有相关订单</p>
                        <p class="sub_txt_1">可以去看看还有那些想买的</p>
                        <a ng-href="{{mall_enturl}}"><p class="sub_txt_home">随便逛逛</p></a>
                    </div>
                </div>
                <div class="recgoods_content" ng-repeat="orders in allorders"  ui-sref="orderdetail({orderid:orders.orderid})">
                    <div class="order_info">
                        <span class="orderid">单号：{{orders.orderid}}&nbsp&nbsp</span>
                        <span class="ordertime">时间：{{orders.createTime | date:'yyyy-MM-dd HH:mm:ss'}}</span>
                    </div>
                    <div class="recgoods_county" ng-repeat="ordershop in orders.shopsList">
                        <span class="county_name">{{ordershop.shopName}}</span>
                        <div class="order_detail">
                            <ul>
                                <li ng-repeat="good in ordershop.goodsDetailList">
                                        <div class="order">
                                            <img class="order_img" ng-src="{{good.goodsLogo}}">
                                            <p class="order_goods">
                                                <span class="order_name">{{good.goodsName}}</span>
                                                <span class="order_price">¥{{good.fee}}</span>
                                            </p>
                                            <p class="order_num">×{{good.num}}</p>
                                        </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="order_check">
                        <p class="order_general">共{{orders.totalNum}}件商品
                            <b ng-show="orders.type == 4">（货到付款）</b>&nbsp&nbsp合计:¥<i>{{orders.totalFee}}</i>&nbsp&nbsp实付:¥<i>{{orders.payment}}</i><span>(含运费¥0.00)</span>
                        </p>
                        <p class="order_btn" ng-show="orders.status!=4">
                            <button ng-hide="orders.status==0&&orders.type==4||orders.status==0&&orders.paystate==1"
                                    ng-click="differStatus(orders)">{{orders | transtatus}}
                            </button>
                            <button ng-show="orders.paystate!=1"
                                    ng-click="sure_cancel(orders)">取消订单
                            </button>
                            <button ng-show="orders.status==2||orders.status==3"
                                    ng-click="sure_delete(orders,allorders)">删除订单
                            </button>
                        </p>
                        <p class="order_btn" ng-show="orders.status==4">
                            <button ng-click="sure_delete(orders,allorders)">删除订单
                            </button>
                            <span>订单已取消</span>
                        </p>
                    </div>
                </div>
                <div class="field-load" ng-show="flat0==true">
                    <div ng-hide="load0 == true" class="field-load-loading">
                        正在努力加载中...
                    </div>
                    <div ng-show="load0 == true" class="field-load-finish">
                        没有更多订单了
                    </div>
                </div>
            </div>
            <!--全部订单-->

            <!--待付款-->
            <div role="tabpanel" class="tab-pane" id="wait_pay">
                <div class="order-cont" ng-show="flat1==false">
                    <div class="error">
                        <div class="error_img">
                            <img src="images/noorder.png">
                        </div>
                        <p class="sub_txt">您还没有相关订单</p>
                        <p class="sub_txt_1">可以去看看还有那些想买的</p>
                        <a ng-href="{{mall_enturl}}"><p class="sub_txt_home">随便逛逛</p></a>
                    </div>
                </div>
                <div class="recgoods_content" ng-repeat="orders in waitpayorder"  ui-sref="orderdetail({orderid:orders.orderid})">
                    <div class="order_info">
                        <span class="orderid">订单：{{orders.orderid}}&nbsp&nbsp</span>
                        <span class="ordertime">时间：{{orders.createTime | date:'yyyy-MM-dd HH:mm:ss'}}</span>
                    </div>
                    <div class="recgoods_county" ng-repeat="ordershop in orders.shopsList"
                         repeat-finish="renderFinish()">
                            <span class="county_name">{{ordershop.shopName}}</span>
                        <div class="order_detail">
                            <ul>
                                <li ng-repeat="good in ordershop.goodsDetailList">
                                        <div class="order">
                                            <img class="order_img" ng-src="{{good.goodsLogo}}">
                                            <p class="order_goods">
                                                <span class="order_name">{{good.goodsName}}</span>
                                                <span class="order_price">¥{{good.fee}}</span>
                                            </p>
                                            <p class="order_num">×{{good.num}}</p>
                                        </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="order_check">
                        <p class="order_general">共{{orders.totalNum}}件商品
                            <b ng-show="orders.type == 4">（货到付款）</b>&nbsp&nbsp合计:¥<i>{{orders.totalFee}}</i>&nbsp&nbsp实付:¥<i>{{orders.payment}}</i><span>(含运费¥0.00)</span>
                        </p>
                        <p class="order_btn" ng-show="orders.status!=4">
                            <button ng-show="orders.type!=4" ng-click="immpay(orders.orderid)">继续支付</button>
                            <button ng-show="orders.status==0||orders.status==1"
                                    ng-click="sure_cancel(orders)">取消订单
                            </button>
                        </p>
                        <p class="order_btn" ng-show="orders.status==4">
                            <button ng-click="sure_delete(orders,waitpayorder)">删除订单
                            </button>
                            <span>订单已取消</span>
                        </p>
                    </div>
                </div>
                <div class="field-load" ng-show="flat1==true">
                    <div ng-hide="load1 == true" class="field-load-loading">
                        正在努力加载中...
                    </div>
                    <div ng-show="load1 == true" class="field-load-finish">
                        没有更多订单了
                    </div>
                </div>
            </div>


            <!--待付款-->

            <!--待发货-->
            <div role="tabpanel" class="tab-pane" id="wait_delivery">
                <div class="order-cont" ng-show="flat2==false">
                    <div class="error">
                        <div class="error_img">
                            <img src="images/noorder.png">
                        </div>
                        <p class="sub_txt">您还没有相关订单</p>
                        <p class="sub_txt_1">可以去看看还有那些想买的</p>
                        <a ng-href="{{mall_enturl}}"><p class="sub_txt_home">随便逛逛</p></a>
                    </div>
                </div>
                <div class="recgoods_content" ng-repeat="orders in waitdeliveryorder"  ui-sref="orderdetail({orderid:orders.orderid})">
                    <div class="order_info">
                        <span class="orderid">单号：{{orders.orderid}}&nbsp&nbsp</span>
                        <span class="ordertime">时间：{{orders.createTime | date:'yyyy-MM-dd HH:mm:ss'}}</span>
                    </div>
                    <div class="recgoods_county" ng-repeat="ordershop in orders.shopsList"
                         repeat-finish="renderFinish()">
                            <span class="county_name">{{ordershop.shopName}}</span>
                        <div class="order_detail">
                            <ul>
                                <li ng-repeat="good in ordershop.goodsDetailList">
                                        <div class="order">
                                            <img class="order_img" ng-src="{{good.goodsLogo}}">
                                            <p class="order_goods">
                                                <span class="order_name">{{good.goodsName}}</span>
                                                <span class="order_price">¥{{good.fee}}</span>
                                            </p>
                                            <p class="order_num">×{{good.num}}</p>
                                        </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="order_check">
                        <p class="order_general">共{{orders.totalNum}}件商品
                            <b ng-show="orders.type == 4">（货到付款）</b>&nbsp&nbsp合计:¥<i>{{orders.totalFee}}</i>&nbsp&nbsp实付:¥<i>{{orders.payment}}</i><span>(含运费¥0.00)</span>
                        </p>
                        <p class="order_btn" ng-show="orders.status==4">
                            <span>订单已取消</span>
                        </p>
                    </div>
                </div>
                <div class="field-load" ng-show="flat2==true">
                    <div ng-hide="load2 == true" class="field-load-loading">
                        正在努力加载中...
                    </div>
                    <div ng-show="load2 == true" class="field-load-finish">
                        没有更多订单了
                    </div>
                </div>
            </div>
            <!--待发货-->

            <!--待收货-->
            <div role="tabpanel" class="tab-pane" id="processing">
                <div class="order-cont" ng-show="flat3==false">
                    <div class="error">
                        <div class="error_img">
                            <img src="images/noorder.png">
                        </div>
                        <p class="sub_txt">您还没有相关订单</p>
                        <p class="sub_txt_1">可以去看看还有那些想买的</p>
                        <a ng-href="{{mall_enturl}}"><p class="sub_txt_home">随便逛逛</p></a>
                    </div>
                </div>
                <div class="recgoods_content" ng-repeat="orders in orderdo"  ui-sref="orderdetail({orderid:orders.orderid})">
                    <div class="order_info">
                        <span class="orderid">单号：{{orders.orderid}}&nbsp&nbsp</span>
                        <span class="ordertime">时间：{{orders.createTime | date:'yyyy-MM-dd HH:mm:ss'}}</span>
                    </div>
                    <div class="recgoods_county" ng-repeat="ordershop in orders.shopsList">
                            <span class="county_name">{{ordershop.shopName}}</span>
                        <div class="order_detail">
                            <ul>
                                <li ng-repeat="good in ordershop.goodsDetailList"
                                    repeat-finish="renderFinish(orderdo)">
                                        <div class="order">
                                            <img class="order_img" ng-src="{{good.goodsLogo}}">
                                            <p class="order_goods">
                                                <span class="order_name">{{good.goodsName}}</span>
                                                <span class="order_price">¥{{good.fee}}</span>
                                            </p>
                                            <p class="order_num">×{{good.num}}</p>
                                        </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="order_check">
                        <p class="order_general">共{{orders.totalNum}}件商品
                            <b ng-show="orders.type == 4">（货到付款）</b>&nbsp&nbsp合计:¥<i>{{orders.totalFee}}</i>&nbsp&nbsp实付:¥<i>{{orders.payment}}</i><span>(含运费¥0.00)</span>
                        </p>
                        <p class="order_btn" ng-show="orders.status!=4">
                            <!--<button>查看物流</button>-->
                            <button ng-click="sure_finish(orders)">确认收货</button>
                        </p>
                        <p class="order_btn" ng-show="orders.status==4">
                            <span>订单已取消</span>
                        </p>
                    </div>
                </div>
                <div class="field-load" ng-show="flat3==true">
                    <div ng-hide="load3 == true" class="field-load-loading">
                        正在努力加载中...
                    </div>
                    <div ng-show="load3 == true" class="field-load-finish">
                        没有更多订单了
                    </div>
                </div>
            </div>
            <!--待收货-->

            <!--待评价-->
            <div role="tabpanel" class="tab-pane" id="finish">
                <div class="order-cont" ng-show="flat4==false">
                    <div class="error">
                        <div class="error_img">
                            <img src="images/noorder.png">
                        </div>
                        <p class="sub_txt">您还没有相关订单</p>
                        <p class="sub_txt_1">可以去看看还有那些想买的</p>
                        <a ng-href="{{mall_enturl}}"><p class="sub_txt_home">随便逛逛</p></a>
                    </div>
                </div>
                <div class="recgoods_content" ng-repeat="orders in completeorder"  ui-sref="orderdetail({orderid:orders.orderid})">
                    <div class="order_info">
                        <span class="orderid">单号：{{orders.orderid}}&nbsp&nbsp</span>
                        <span class="ordertime">时间：{{orders.createTime | date:'yyyy-MM-dd HH:mm:ss'}}</span>
                    </div>
                    <div class="recgoods_county" ng-repeat="ordershop in orders.shopsList">
                            <span class="county_name">{{ordershop.shopName}}</span>
                        <div class="order_detail">
                            <ul>
                                <li ng-repeat="good in ordershop.goodsDetailList" repeat-finish="renderFinish()">
                                        <div class="order">
                                            <img class="order_img" ng-src="{{good.goodsLogo}}">
                                            <p class="order_goods">
                                                <span class="order_name">{{good.goodsName}}</span>
                                                <span class="order_price">¥{{good.fee}}</span>
                                            </p>
                                            <p class="order_num">×{{good.num}}</p>
                                        </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="order_check">
                        <p class="order_general">
                            <b ng-show="orders.type == 4">（货到付款）</b>&nbsp&nbsp合计:¥<i>{{orders.totalFee}}</i>&nbsp&nbsp实付:¥<i>{{orders.payment}}</i><span>(含运费¥0.00)</span>
                        </p>
                        <p class="order_btn">
                            <button ng-click="evaluate()">立即评价</button>
                            <button ng-show="orders.status==2||orders.status==3"
                                    ng-click="sure_delete(orders,completeorder)">删除订单
                            </button>
                        </p>
                    </div>
                </div>
                <div class="field-load" ng-show="flat4==true">
                    <div ng-hide="load4 == true" class="field-load-loading">
                        正在努力加载中...
                    </div>
                    <div ng-show="load4 == true" class="field-load-finish">
                        没有更多订单了
                    </div>
                </div>
            </div>
        </div>
        <!--待评价-->
    </div>
</div>
<div class="contain-item">
    <div class="contain-detail">
        <div class="contain-text">
            <div class="contain-text1">是否已确认收货？</div>
        </div>
        <div class="contain-choose">
            <button class="contain-no">否</button>
            <button class="contain-yes" ng-click="finish()">是</button>
        </div>
    </div>
    <div class="contain-back"></div>
</div>
<div class="contain-item1">
    <div class="contain-detail">
        <div class="contain-text">
            <div class="contain-text1">是否取消该订单？</div>
        </div>
        <div class="contain-choose">
            <button class="contain-no">否</button>
            <button class="contain-yes" ng-click="cancel()">是</button>
        </div>
    </div>
    <div class="contain-back"></div>
</div>
<div class="contain-item2">
    <div class="contain-detail">
        <div class="contain-text">
            <div class="contain-text1">是否删除该订单？</div>
        </div>
        <div class="contain-choose">
            <button class="contain-no">否</button>
            <button class="contain-yes" ng-click="deleteOrder()">是</button>
        </div>
    </div>
    <div class="contain-back"></div>
</div>
<div class="c-float-popWrap msgMode">
    <div class="pop-mask"></div>
    <div class="c-float-modePop">
        <div class="warnMsg">
        </div>
    </div>
</div>